﻿using System.Collections.Generic;
using com.magickms.enums;
using com.magickms.util;

namespace com.magickms.model
{
    public class MSession
    {
        private string _language = "0";
        private List<MSentence> _question = new List<MSentence>();
        private List<MSentence> _response = new List<MSentence>();

        public string RawInput { get; set; }

        public string Language
        {
            get { return _language; }
            set
            {
                if (Util.IsValidateHash(value))
                {
                    _language = value;
                }
                else
                {
                    _language = "0";
                }
            }
        }

        public EStyle Style { get; set; }

        public List<string> Category { get; set; }

        public List<MSentence> Question { get { return _question; } }

        public int QIndex { get; set; }

        public List<MSentence> Response { get { return _response; } }

        public int RIndex { get; set; }
    }
}
